from fdfs_client.client import Fdfs_client

client = Fdfs_client('client.conf')

ret = client.upload_appender_by_filename('/home/python/Desktop/01.jpeg')

print(ret)

# {'Group name': 'group1',
#  'Remote file_id': 'group1/M00/00/02/wKhumV15tByEajoLAAAAAN0Tziw29.jpeg',
#  'Status': 'Upload successed.',
#  'Local file name': '/home/python/Desktop/01.jpeg',
#  'Uploaded size': '46.00KB',
#  'Storage IP': '192.168.110.153'}